package com.zzy.algorithm.model;

public class TreeNode {

    public int val;
    public TreeNode left;
    public TreeNode right;

    public TreeNode(){}
    public TreeNode(int val){
        this.val = val;
    }
    public TreeNode(int val,TreeNode left,TreeNode right){
        this.val = val;
        this.left = left;
        this.right = right;
    }

    public static TreeNode treeNode1;

    static {
        TreeNode node4 = new TreeNode(4,null,null);
        TreeNode node5 = new TreeNode(5,null,null);
        TreeNode node2 = new TreeNode(2,node4,node5);
        TreeNode node6 = new TreeNode(6,null,null);
        TreeNode node3 = new TreeNode(3,node6,null);
        treeNode1 = new TreeNode(1,node2,node3);
    }

}
